package atri.service;

import atri.model.Book;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface BookService extends IService<Book> {
    int delete_under_comments(int f_id);

    List<Book> getByf_id(int f_id);
    List<Book> get_by_user(int id);
    List<Book> get_by_content(String content);

    Boolean delete_by_user_id(int id);

    Book get_name(int id);
    Book get_a_book(int id);
    List<Book> find_by_category(String category);
    Boolean add_view(int id);
    Boolean stars_new(float rate,int id);

}
